<script>
    import {
        setSystemHi,
        setSystemWi,
    } from '@/store/user';
    
    export default {
        onLaunch: function() {
            console.log("App Launch----------------------");
            const app = uni.getSystemInfoSync();
            setSystemHi(app.statusBarHeight);
            setSystemWi(app.screenWidth);
            console.log('screenWidth', app.screenWidth);
												
												  // #ifdef APP-PLUS
												  plus.navigator.setFullscreen(true); // 应用启动时隐藏状态栏
												  // #endif
												
        },
        onShow: function() {
            console.log("App Show-----------------");
        },
        onHide: function() {
            console.log("App Hide");
        },
    };
</script>

<style lang="scss">
    @import "@/uni_modules/uview-ui/index.scss";

    // #ifdef H5 
    /* Web专用 */
    html {
        font-size: 5px !important;
    }
    @media screen and (min-width: 961px) {
        html {
            font-size: 10px !important;
        }
    }
    // #endif

    // #ifdef APP-PLUS
    /* 安卓设备为960px 适配5px */
    html {
        font-size: 5px !important;
    }
    // #endif

    *,
    view {
        box-sizing: border-box;
    }

    image,
    img {
        width: 80%;
        margin: 0 auto;
        height: auto;
    }
</style>